<div class="child-box">
    <div class="layui-card layadmin-header">
        <div class="layui-breadcrumb" lay-filter="breadcrumb">
            <a href="javascript:" lay-href=""><i class="iconfont iconhome"></i>首页</a>
            <a><cite>供应商</cite></a>
            <a><cite>我的供应商</cite></a>
            <div class="layui-card-header-left" title="刷新" zmark-event="layui.manage.render">
                <i class="layui-icon layui-icon-refresh layui-anim" zmark-anim="layui-anim-rotate"></i>
            </div>
        </div>
    </div>
    <div class="layui-card mt20">
        <form class="layui-form" method="post" lay-filter="form-sullier-info" id="form-sullier-info"
              method="post" onsubmit="return false">
            <div class="layui-card-header">
                <span class="def-fc left-split">供应商信息</span>
                <a href="javascript:" class="def-a fr" zmark-event="layui.supplierList.addSupplier"><i class="iconfont icontianjia"></i>新增</a>
            </div>
            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-md6 pr10">
                        <label class="layui-form-label">供应商名称</label>
                        <div class="layui-input-block">
                            <select name="id" id="sullier-info-name" lay-filter="select-sullier-info-name"></select>
                        </div>
                    </div>
                    <div class="layui-col-md6 pr10">
                        <label class="layui-form-label">状态</label>
                        <div class="layui-input-block form-disabled">
                            <input name="disabledDesc" class="layui-input" disabled/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="layui-col-md12 pr10">
                        <label class="layui-form-label">地址</label>
                        <div class="layui-input-block form-disabled">
                            <input name="address" class="layui-input" disabled/>
                        </div>
                    </div>
                </div>
                <div class="layui-row">
                    <div class="t-a-r pr10" id="view-supplier-opt">

                    </div>
                </div>
            </div>
        </form>
    </div>

    <div class="layui-card mt20">
        <div class="layui-card-header">
            <span class="def-fc left-split">供应商银行</span>
            <a href="javascript:" class="def-a fr" zmark-event="layui.supplierList.addSupplierBank"><i class="iconfont icontianjia"></i>新增</a>
        </div>
        <div class="layui-card-body tab-sm">
            <table class="layui-hide" lay-filter="tab-supplier-bank-list" id="tab-supplier-bank-list"></table>
        </div>
    </div>

    <div class="layui-card mt20">
        <div class="layui-card-header">
            <span class="def-fc left-split">供应商提货地址</span>
            <a href="javascript:" class="def-a fr" zmark-event="layui.supplierList.addSupplierTake"><i class="iconfont icontianjia"></i>新增</a>
        </div>
        <div class="layui-card-body tab-sm">
            <table class="layui-hide" lay-filter="tab-supplier-take-list" id="tab-supplier-take-list"></table>
        </div>
    </div>
</div>
<script type="text/html" id="tpl-supplier-opt">
    {{# if(layui.com.isNotEmpty(d.id)){ }}
    <a href="javascript:" class="def-a" zmark-event="layui.supplierList.editSupplier"><i class="iconfont iconyijianfankui"></i>修改</a> |
    {{# if(d.disabled == true){ }}
    <a href="javascript:" onclick="layui.supplierList.enableDisable(false)"><i class="iconfont iconqiyong2"></i>启用</a> |
    {{# } }}
    {{# if(d.disabled != true){ }}
    <a href="javascript:" onclick="layui.supplierList.enableDisable(true)"><i class="iconfont iconjinyong"></i>禁用</a>  |
    {{# } }}
    <a href="javascript:" class="def-a" zmark-event="layui.supplierList.removeSupplier"><i class="iconfont iconhuishou"></i>删除</a>
    {{# } }}
</script>
<script type="text/html" id="tpl-default">
    {{# if(d.isDefault == true){ }}
     <i class="iconfont iconqiyong color-green f20"></i>
    {{# } }}
</script>
<script type="text/html" id="tpl-bank-opt">
    <a href="javascript:" class="def-a" onclick="layui.supplierList.editSupplierBank('{{d.id}}')"><i class="iconfont iconyijianfankui"></i>修改</a> |
    {{# if(d.isDefault == false){ }}
    <a href="javascript:" class="def-a" onclick="layui.supplierList.setBankDefault('{{d.id}}')"><i class="iconfont iconmoren"></i>默认</a> |
    {{# } }}
    <a href="javascript:" class="def-a" onclick="layui.supplierList.removeBankSupplier('{{d.id}}')"><i class="iconfont iconhuishou"></i>删除</a>
</script>
<script type="text/html" id="tpl-address">
    {{d.provinceName}}{{d.cityName}}{{d.areaName}}{{d.address}}
</script>
<script type="text/html" id="tpl-take-opt">
    <a href="javascript:" class="def-a" onclick="layui.supplierList.editSupplierTake('{{d.id}}')"><i class="iconfont iconyijianfankui"></i>修改</a> |
    {{# if(d.isDefault == false){ }}
    <a href="javascript:" class="def-a" onclick="layui.supplierList.setTakeDefault('{{d.id}}')"><i class="iconfont iconmoren"></i>默认</a> |
    {{# } }}
    <a href="javascript:" class="def-a" onclick="layui.supplierList.removeTakeSupplier('{{d.id}}')"><i class="iconfont iconhuishou"></i>删除</a>
</script>
<script>
    layui.use('supplierList', layui.factory('supplierList'));
</script>